package org.brisling.websocket.domain;

import java.util.List;

/**
 * 
 * <p>Title: WSView</p>
 * <p>Description: websocket视图层app对象</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年6月12日 下午11:07:38
 */
public class WSView<T> {

	private Long id;
	
	//业务编码
	private String bizcode;
	
	//方法名称
	private String method;
	
	//业务唯一标识
	private String identify;
	
	//集合对象
	private List<T> rows;
	
	//单个对象
	private Object data;
	
	//返回值
	private Integer retVal;
	
	//执行状态
	private String status;
	
	//提示信息
	private String msg;
	
	//消息类型(1、可点击查看链接，2、不可点击查看链接)
	private String type;
	
	//未读消息数量
	private Integer badge;
	
	public WSView(){}
	
	public WSView(String bizcode,String method){
		this.bizcode = bizcode;
		this.method = method;		
		this.status = "success";
	}
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getIdentify() {
		return identify;
	}

	public void setIdentify(String identify) {
		this.identify = identify;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getBadge() {
		return badge;
	}

	public void setBadge(Integer badge) {
		this.badge = badge;
	}

	public String getBizcode() {
		return bizcode;
	}

	public void setBizcode(String bizcode) {
		this.bizcode = bizcode;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getRetVal() {
		return retVal;
	}

	public void setRetVal(Integer retVal) {
		this.retVal = retVal;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	
}
